package dd.prog2.exercises.set07;

public class _main {

	public static void main(String[] args) {
		CompositeTank t = new CompositeTank();
		t.add(new CuboidTank(2, 3, 4));
		t.add(new SphericalTank(3));
		t.add(new CylindricalTank(3, 4));
		CompositeTank clone = null;
		try {
			clone = t.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		System.out.println("1. (Original) "+t.toString());
		t.remove();
		System.out.println();
		System.out.println("1. (Tank Removed) "+t.toString());
		System.out.println();
		System.out.println("2 (Clone) "+clone.toString());

	}

}
